<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品搜索</title>
    <link rel="stylesheet" href="../CSS/common.css">
    <link rel="stylesheet" href="../CSS/top.css">
    <link rel="stylesheet" href="../CSS/swiper-bundle.css">
    <link rel="stylesheet" href="../CSS/botton.css">
    <link rel="stylesheet" href="../CSS/SouSuo.css">
</head>

<body>

    <!-- 头部/2 -->
    <header>
        <a href="./home.html">
            <img src="../img//fh.png" alt="">
        </a>
        <span>商品搜索</span>
    </header>
    <section>
        <form action="" id="form">
            <input type="text" placeholder="请输入名称" id="userName">
            <input type="reset" id="resetBtn" value="搜索">
            <img src="../img/ss.png" alt="">
        </form>
        <span>历史搜索</span>
        <div class="div-1">
            <p class="div-2">韭菜</p>
            <p class="div-2">咖啡</p>
            <p class="div-2">冰淇淋</p>
            <p class="div-2">面包</p>
        </div>
        <button>
            <img src="../img/sc.png" alt="">
            清除历史搜索记录
        </button>
    </section>
    <script src="../jS/flexible.js"></script>
    <script src="../JS/jquery.3.5.1.js"></script>
    <script>
        document.querySelector("#userName").focus();
        $('button').click(function () {
            $('.div-1').children().remove()
        })
    </script>
</body>

</html>